<?php

//Hämtar in nödvändiga filer
require_once ("LoginController.php");
require_once ("RegisterController.php");	

	class PageCompositionView{
		
		public function DoControl(Database $db){
		
		//Intantierar
		$lc = new LoginController();
		$rc = new RegisterController();		
		
		if(isset($_GET[LoginView::$new_user]) && $_GET[LoginView::$new_user]){
			
			return $rc->DoControl($db);	
			
		}
			return $lc->DoControl($db);
			
		}

	}
